import argparse
import yaml

parser = argparse.ArgumentParser()
parser.add_argument('--config', type=str, default='./config/fedavg.yml')
args = parser.parse_args()

with open(args.config) as file:
    try:
        databaseConfig = yaml.safe_load(file)
        print(databaseConfig)
    except yaml.YAMLError as exc:
        print(exc)
